let db = require('../db/index.js')


exports.get = (req, res) => {
    let sql = 'select * from vuestudent'
    let result=[]
    db.query(sql, (err, data) => {
        if(err) {
            return res.send('错误：' + err.message)
        }
        result=[...data.filter(item=>{
            return item.name==="王子异"
        })]
        res.send(data)
    })
}
